//
//  Seach_FiltrateBrand_Btn_WX.m
//  ZITHER
//
//  Created by weixin on 2019/3/22.
//  Copyright © 2019 weixn. All rights reserved.
//

#import "Seach_FiltrateBrand_Btn_WX.h"

@implementation Seach_FiltrateBrand_Btn_WX



-(BaseImageV *)imageX{
    if (!_imageX) {
        _imageX = [[BaseImageV alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        _imageX.image = [UIImage imageNamed:@"搜索_筛选_x角标"];
        [self addSubview:_imageX];
        [_imageX mas_makeConstraints:^(MASConstraintMaker *make) {
            make.right.bottom.equalTo(self).offset(0);
            make.height.mas_equalTo(15);
            make.width.mas_equalTo(20);
        }];
    }
    return _imageX;
}

//-(void)changBtn:(branddModel*)model{
-(void)changBtnisSelect:(BOOL)isSelect{

    //搜索_筛选_x角标
    
    if (isSelect) {
        //选中;
        self.backgroundColor = baseColorTheme;
        self.backgroundColor = [UIColor colorWithRed:122/255.0 green:132/255.0 blue:237/255.0 alpha:0.1/1.0];
        [self setTitleColor:baseColorTheme forState:UIControlStateNormal];
        self.imageX.hidden = NO;
    }else{
        //为选中;
        self.backgroundColor = HexColor(0xf5f5f5);
        [self setTitleColor:HexColor(0x333333) forState:UIControlStateNormal];
        self.imageX.hidden = YES;

    }


}




@end
